package com.drama.api.company.order.domain.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
public class CompanyOrderListSearchVO implements Serializable {
    private static final long serialVersionUID = -1L;

    @ApiModelProperty(value = "所属公司ID[精确搜索]【平台端需要】")
    private String companyId;
    @ApiModelProperty(value = "所属公司名称【模糊搜索】")
    private String dramaName;

    @ApiModelProperty(value = "查看类型(1日期 2剧目)",required = true)
    private Integer type;

    @ApiModelProperty(value = "开始时间(yyyy-MM-dd)")
    private String startDate;
    @ApiModelProperty(value = "结束时间(yyyy-MM-dd)")
    private String endDate;

    @ApiModelProperty(value = "页数")
    private Integer pageNum;
    @ApiModelProperty(value = "每页行数")
    private Integer pageSize;


    public Integer getPageNum() {
        if (pageNum == null) {
            pageNum = 1;
        }
        return pageNum;
    }

    public Integer getPageSize() {
        if (pageSize == null) {
            pageSize = 10;
        }
        return pageSize;
    }
}